package com.dao.impl;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.dao.UserInfoDao;
import com.entity.User;

@Repository("userInfoDao")
public class UserInfoDaoImpl extends HibernateDaoSupport implements UserInfoDao {
	
	Session sesstion=null;
	
	@SuppressWarnings("unchecked")
	public List<User> getAllUser() throws Exception {
		sesstion=getSession();
		Criteria c=sesstion.createCriteria(User.class);
		return (List<User>)c.list();
	}
	
}
